package org.rainbowinverted.charging.device.api.operation.dto;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.rainbowinverted.charging.device.api.operation.constants.DeviceRespConstantEnum;

import java.io.Serial;
import java.io.Serializable;

/**
 * 设备resp dto
 *
 * @author huaiping
 */
@Data
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@AllArgsConstructor(staticName = "of")
public class DeviceRespDTO<T> implements Serializable {
    @Serial
    private static final long serialVersionUID = -4631718785062832207L;
    /**
     * 设备响应数据
     */
    private T data;
    /**
     * errorInfo
     */
    private DeviceRespConstantEnum errorInfo;
}
